package com.prwan.msnotify.client;

import com.prwan.msnotify.client.impl.EquipmentStatusClientImpl;
import com.prwan.msnotify.pojo.EquipmentStatus;
import entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @Auther: zhy
 * @Date: 2019/7/21
 * @Description: 调用设备状态服务
 */
@FeignClient(value = "prawn-ift-collequipment",fallback = EquipmentStatusClientImpl.class)
public interface EquipmentStatusClient {

    /**
     * 修改设备状态
     * @param equipmentStatus
     * @param id
     * @return Result
     */
    @RequestMapping(value="/equipmentStatus/{id}",method= RequestMethod.PUT)
    public Result update(@RequestBody EquipmentStatus equipmentStatus, @PathVariable("id") String id );

}
